package com.yby6.common.enums;

import lombok.Getter;

/**
 * description:  杨不易网站 :www.yangbuyi.top
 * program:  yangbuyi-rbac
 * ClassName:  StateEnum
 * create:  2021-05-11 17:44
 *
 * @author: yangbuyi
 * @since： JDK1.8
 * @StateEnum: 状态$
 **/
@Getter
public enum StateEnums {
	/**
	 * 逻辑删除状态
	 */
	DELETED(1, "已删除"),
	NOT_DELETED(0, "未删除"),

	/**
	 * 启用状态
	 */
	ENABLED(1, "启用"),
	NOT_ENABLE(0, "未启用"),

	/**
	 * 性别状态
	 */
	SEX_MAN(1, "男"),
	SEX_WOMAN(2, "女"),

	/**
	 * 请求访问状态枚举
	 */
	REQUEST_SUCCESS(1, "请求正常"),
	REQUEST_ERROR(0, "请求异常"),
	;

	private Integer code;
	private String msg;

	/**
	 * 构造
	 * @param code 编码
	 * @param msg 提示
	 */
	StateEnums(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}
